default to CertificateValidity::INVALID
authorCaolán McNamara <caolanm@redhat.com>
Mon, 8 Feb 2021 17:05:28 +0000 (17:05 +0000)
committerBastien Roucariès <rouca@debian.org>
Mon, 13 Jan 2025 22:18:17 +0000 (22:18 +0000)
commitd0b563acfbae4f205749c54c06985140567a092c
tree4269e5ab0162eb6f984b7a8f0470f298d87aadcc
parent95316864ac738889caf3e84e16c17e8a0ebcf551
default to CertificateValidity::INVALID

so if CertGetCertificateChain fails we don't want validity to be
css::security::CertificateValidity::VALID which is what the old default
of 0 equates to

notably

commit 1e0bc66d16aee28ce8bd9582ea32178c63841902
Date:   Thu Nov 5 16:55:26 2009 +0100

    jl137:  #103420# better logging

turned the nss equivalent of SecurityEnvironment_NssImpl::verifyCertificate
from 0 to CertificateValidity::INVALID like this change does

Change-Id: I5350dbc22d1b9b378da2976d3b0abd728f1f4c27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110561
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Gbp-Pq: Name default-to-CertificateValidity::INVALID.diff
xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx